using System.Web.Routing;
using Dyn.News.Models;
using Orchard.Core.Feeds;

namespace Dyn.News.Extensions {
    public static class FeedManagerExtensions {
        public static void Register(this IFeedManager feedManager, NewsCategoryPart categoryPart) {
            feedManager.Register(categoryPart.Name, "rss", new RouteValueDictionary { { "containerid", categoryPart.Id } });
            feedManager.Register(categoryPart.Name + " - Comments", "rss", new RouteValueDictionary { { "commentedoncontainer", categoryPart.Id } });
        }
    }
}
